home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXMLContentBuilder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  6.7 KB  |  196 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXMLContentBuilder.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXMLContentBuilder_h__
  6. #define __gen_nsIXMLContentBuilder_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19. class nsIDOMDocument; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIXMLContentBuilder */
  23. #define NS_IXMLCONTENTBUILDER_IID_STR "e9c4cd4f-cd41-43d0-bf3b-48abb9cde90f"
  24.  
  25. #define NS_IXMLCONTENTBUILDER_IID \
  26.   {0xe9c4cd4f, 0xcd41, 0x43d0, \
  27.     { 0xbf, 0x3b, 0x48, 0xab, 0xb9, 0xcd, 0xe9, 0x0f }}
  28.  
  29. class NS_NO_VTABLE nsIXMLContentBuilder : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXMLCONTENTBUILDER_IID)
  33.  
  34.   /* void clear (in nsIDOMElement root); */
  35.   NS_IMETHOD Clear(nsIDOMElement *root) = 0;
  36.  
  37.   /* void setDocument (in nsIDOMDocument doc); */
  38.   NS_IMETHOD SetDocument(nsIDOMDocument *doc) = 0;
  39.  
  40.   /* void setElementNamespace (in AString ns); */
  41.   NS_IMETHOD SetElementNamespace(const nsAString & ns) = 0;
  42.  
  43.   /* void beginElement (in AString tagname); */
  44.   NS_IMETHOD BeginElement(const nsAString & tagname) = 0;
  45.  
  46.   /* void endElement (); */
  47.   NS_IMETHOD EndElement(void) = 0;
  48.  
  49.   /* void attrib (in AString name, in AString value); */
  50.   NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) = 0;
  51.  
  52.   /* void textNode (in AString text); */
  53.   NS_IMETHOD TextNode(const nsAString & text) = 0;
  54.  
  55.   /* readonly attribute nsIDOMElement root; */
  56.   NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) = 0;
  57.  
  58.   /* readonly attribute nsIDOMElement current; */
  59.   NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) = 0;
  60.  
  61. };
  62.  
  63. /* Use this macro when declaring classes that implement this interface. */
  64. #define NS_DECL_NSIXMLCONTENTBUILDER \
  65.   NS_IMETHOD Clear(nsIDOMElement *root); \
  66.   NS_IMETHOD SetDocument(nsIDOMDocument *doc); \
  67.   NS_IMETHOD SetElementNamespace(const nsAString & ns); \
  68.   NS_IMETHOD BeginElement(const nsAString & tagname); \
  69.   NS_IMETHOD EndElement(void); \
  70.   NS_IMETHOD Attrib(const nsAString & name, const nsAString & value); \
  71.   NS_IMETHOD TextNode(const nsAString & text); \
  72.   NS_IMETHOD GetRoot(nsIDOMElement * *aRoot); \
  73.   NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIXMLCONTENTBUILDER(_to) \
  77.   NS_IMETHOD Clear(nsIDOMElement *root) { return _to Clear(root); } \
  78.   NS_IMETHOD SetDocument(nsIDOMDocument *doc) { return _to SetDocument(doc); } \
  79.   NS_IMETHOD SetElementNamespace(const nsAString & ns) { return _to SetElementNamespace(ns); } \
  80.   NS_IMETHOD BeginElement(const nsAString & tagname) { return _to BeginElement(tagname); } \
  81.   NS_IMETHOD EndElement(void) { return _to EndElement(); } \
  82.   NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) { return _to Attrib(name, value); } \
  83.   NS_IMETHOD TextNode(const nsAString & text) { return _to TextNode(text); } \
  84.   NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return _to GetRoot(aRoot); } \
  85.   NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) { return _to GetCurrent(aCurrent); } 
  86.  
  87. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  88. #define NS_FORWARD_SAFE_NSIXMLCONTENTBUILDER(_to) \
  89.   NS_IMETHOD Clear(nsIDOMElement *root) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(root); } \
  90.   NS_IMETHOD SetDocument(nsIDOMDocument *doc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocument(doc); } \
  91.   NS_IMETHOD SetElementNamespace(const nsAString & ns) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElementNamespace(ns); } \
  92.   NS_IMETHOD BeginElement(const nsAString & tagname) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginElement(tagname); } \
  93.   NS_IMETHOD EndElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndElement(); } \
  94.   NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->Attrib(name, value); } \
  95.   NS_IMETHOD TextNode(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->TextNode(text); } \
  96.   NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
  97.   NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrent(aCurrent); } 
  98.  
  99. #if 0
  100. /* Use the code below as a template for the implementation class for this interface. */
  101.  
  102. /* Header file */
  103. class nsXMLContentBuilder : public nsIXMLContentBuilder
  104. {
  105. public:
  106.   NS_DECL_ISUPPORTS
  107.   NS_DECL_NSIXMLCONTENTBUILDER
  108.  
  109.   nsXMLContentBuilder();
  110.  
  111. private:
  112.   ~nsXMLContentBuilder();
  113.  
  114. protected:
  115.   /* additional members */
  116. };
  117.  
  118. /* Implementation file */
  119. NS_IMPL_ISUPPORTS1(nsXMLContentBuilder, nsIXMLContentBuilder)
  120.  
  121. nsXMLContentBuilder::nsXMLContentBuilder()
  122. {
  123.   /* member initializers and constructor code */
  124. }
  125.  
  126. nsXMLContentBuilder::~nsXMLContentBuilder()
  127. {
  128.   /* destructor code */
  129. }
  130.  
  131. /* void clear (in nsIDOMElement root); */
  132. NS_IMETHODIMP nsXMLContentBuilder::Clear(nsIDOMElement *root)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* void setDocument (in nsIDOMDocument doc); */
  138. NS_IMETHODIMP nsXMLContentBuilder::SetDocument(nsIDOMDocument *doc)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* void setElementNamespace (in AString ns); */
  144. NS_IMETHODIMP nsXMLContentBuilder::SetElementNamespace(const nsAString & ns)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* void beginElement (in AString tagname); */
  150. NS_IMETHODIMP nsXMLContentBuilder::BeginElement(const nsAString & tagname)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* void endElement (); */
  156. NS_IMETHODIMP nsXMLContentBuilder::EndElement()
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* void attrib (in AString name, in AString value); */
  162. NS_IMETHODIMP nsXMLContentBuilder::Attrib(const nsAString & name, const nsAString & value)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* void textNode (in AString text); */
  168. NS_IMETHODIMP nsXMLContentBuilder::TextNode(const nsAString & text)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* readonly attribute nsIDOMElement root; */
  174. NS_IMETHODIMP nsXMLContentBuilder::GetRoot(nsIDOMElement * *aRoot)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178.  
  179. /* readonly attribute nsIDOMElement current; */
  180. NS_IMETHODIMP nsXMLContentBuilder::GetCurrent(nsIDOMElement * *aCurrent)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* End of implementation class template. */
  186. #endif
  187.  
  188. // {E09AF32D-2A54-4D76-9EF0-3070E83F8BE7}
  189. #define NS_XMLCONTENTBUILDER_CID \
  190. { 0xe09af32d, 0x2a54, 0x4d76, { 0x9e, 0xf0, 0x30, 0x70, 0xe8, 0x3f, 0x8b, 0xe7 } }
  191.     
  192. #define NS_XMLCONTENTBUILDER_CONTRACTID "@mozilla.org/xtf/xml-contentbuilder;1"
  193. nsresult NS_NewXMLContentBuilder(nsIXMLContentBuilder** aResult);
  194.  
  195. #endif /* __gen_nsIXMLContentBuilder_h__ */
  196.